package com.xbn.xbnmall.order.feign;

import com.xbn.xbnmall.order.to.MemberReceiveAddressTo;
import com.xbn.xbnmall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author XBN
 * @date 2020/8/17 20:08
 * @email 78742541@qq.com
 */
@FeignClient("xbnmall-member")
public interface MemberFeignService {
    @GetMapping("/member/memberreceiveaddress/{memberId}.addresses")
    public List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);

    @GetMapping("/member/memberreceiveaddress/{addrId}")
    public MemberReceiveAddressTo getAddrInfo(@PathVariable("addrId") Long addrId);
}
